package homework24;

public class Client {
    public static void main(String[] args) {
        Beverage beverage1 = new Espresso();
        beverage1 = new Mocha(beverage1);
        beverage1 = new Milk(beverage1);
        System.out.println(beverage1.getDescription() + "\t" +beverage1.getCost());

        System.out.println("======================");
        Beverage beverage2 = new DarkRoast();
        beverage2 = new Whip(beverage2);
        System.out.println(beverage2.getDescription() + "\t" +beverage2.getCost());
    }
}
